package cn.e2win.biz.base;

import java.io.Serializable;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import cn.e2win.base.entity.BaseEntity;
import cn.e2win.base.json.vo.Pager;


public interface BaseDAO {
	

	
	Map<String, Object> get1stRecordBySql(String sql, Map<String, ?> paramMap);
	
	List<Map<String, Object>> getListBySql(String sql, Map<String, ?> map);
	
	
	void processPager(Pager pager)throws SQLException;
	
	int updateBySql(String sql, Map<String, Object> args);

	
	String getSeq(String formType, Integer coId);

	Object getEntity(Class clazz, Serializable id);
	Map<String, Object> getEntity(BaseEntity entity);
	Object merge(Object o);
	void saveAll(List<?>  list);

	List<Map<String, Object>> getListBySqlAutoParam(String sql,
			Map<String, ?> map);

	void delete(Object o);

	Object save(Object object);
	
	void update(Object object);
}
